

<include file="Public/head"/><body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>
            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <div class="cf">
                            <form class="form-inline" action="" method="get">
                                <select name="domain" class="form-control">
                                    <option value="0">--公众号--</option>
                                    <foreach name="platform_list" item="vo">
                                        <option value="{$vo.domain}" <if condition="$domian eq $vo[domain]">selected</if>>--{$vo.platform_name}--</option>
                                    </foreach>
                                </select>

                                <label class="inline">用户名称</label>
                                <input type="text" name="nickname" value="{$search_name}" class="form-control">


                                <button type="submit" class="btn btn-purple btn-sm">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span> 搜索
                                </button>
                            </form>

                            <!--订阅号-->
                            <form class="form-inline" action="{:U('User/subscribesendinfo')}" method="post" target="_blank">
                                <input type="hidden" name="user_ids" id="user_id" value="" />
                                <label class="inline">标题</label>
                                <input type="text" name="title" value="" class="form-control">
                                <label class="inline">描述</label>
                                <input type="text" name="desc" value="" class="form-control">
                                <label class="inline">图片地址</label>
                                <input type="text" name="img" value="" class="form-control">
                                <label class="inline">连接地址</label>
                                <input type="text" name="url" value="" class="form-control">
                                <label class="inline">选择公众号</label>
                                <select name="platform_id" class="form-control">
                                    <foreach name="subscribe" item="vo">
                                        <option value="{$vo.platform_id}" <if condition="$domian eq $vo[domain]">selected</if>>--{$vo.platform_name}--</option>
                                    </foreach>
                                </select>
                                <button type="submit" onclick= "if(confirm( '确定推送图文消息？ ')==false)return   false; " class="btn btn-purple btn-sm">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span> 订阅号推送图文信息
                                </button>
                            </form>

                            <!--服务号推送图文信息-->
                            <form class="form-inline" action="{:U('User/threadsendinfo')}" method="post" target="_blank">
                                <input type="hidden" name="user_ids" id="user_ids" value="" />
                                <label class="inline">标题</label>
                                <input type="text" name="title" value="" class="form-control">
                                <label class="inline">描述</label>
                                <input type="text" name="desc" value="" class="form-control">
                                <label class="inline">图片地址</label>
                                <input type="text" name="img" value="" class="form-control">
                                <label class="inline">连接地址</label>
                                <input type="text" name="url" value="" class="form-control">
                                <!--<label class="inline">选择公众号</label>
								<select name="domain" class="form-control">
                                    <foreach name="platform_list" item="vo">
                                    <option value="{$vo.domain}" <if condition="$domian eq $vo[domain]">selected</if>>&#45;&#45;{$vo.platform_name}&#45;&#45;</option>
                                    </foreach>
                                </select> -->
                                <button type="submit" onclick= "if(confirm( '确定推送图文消息？ ')==false)return   false; " class="btn btn-purple btn-sm">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span> 服务号推送图文信息
                                </button>
                            </form>
                            <!--推送模板信息-->
                            <form class="form-inline" action="{:U('User/threadputtemp')}" method="post" target="_blank">
                                <input type="hidden" name="user_ids" id="user_ids1" value="" />
                                <label class="inline">标题</label>
                                <input type="text" name="title" value="亲您或许会喜欢" class="form-control">
                                <label class="inline">描述</label>
                                <input type="text" name="remark" value="欢迎品鉴" class="form-control">
                                <label class="inline">小说信息</label>
                                <input type="text" name="novel_info" value="《透视村医》500章更新" class="form-control">
                                <label class="inline">连接地址</label>
                                <input type="text" name="novel_url" value="http://shacr.cn/Home/Novel/show/novel_id/899" class="form-control">
                                <label class="inline">更新日期</label>
                                <input type="text" name="update_date" value="2017年12月31日" class="form-control">
                                <label class="inline">偏移</label>
                                <input type="text" class="form-control move" placeholder="每页推多少个号">
                                <input type="hidden" id="inputtext" value="{$push_count}" />

                                <!--<label class="inline">选择公众号</label>
								<select name="domain" class="form-control">
                                    <foreach name="platform_list" item="vo">
                                    <option value="{$vo.domain}" <if condition="$domian eq $vo[domain]">selected</if>>--{$vo.platform_name}--</option>
                                    </foreach>
                                </select> -->
                                <button type="submit" onclick= "if(confirm( '确定推送模版消息？ ')==false)return   false; " class="btn btn-purple btn-sm">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span> 推送模板信息
                                </button>
                            </form>


                            <form class="form-inline" action="{:U('User/xin_send_info')}" method="post" target="_blank">
                                <input type="hidden" name="user_ids" id="user_ids2" value="" />
                                <label class="inline">标题</label>
                                <input type="text" name="title" value="新活动上线啦" class="form-control">
                                <button type="submit" class="btn btn-purple btn-sm">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span> 赠书币活动推送模板信息
                                </button>
                            </form>
                        </div>
                        <div class="space-4"></div>
                        <form id="form" method="post" action="{:U('del')}">
                            <table class="table table-striped table-bordered">
                                <thead>
                                <tr>
                                    <th class="center"><input class="check-all" type="checkbox" value=""></th>
                                    <th>用户昵称</th>
                                    <th>open_id</th>
                                    <th>最后看书历史</th>
                                    <th>注册时间</th>
                                    <th>哪个公众号</th>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="list" id="val">
                                    <tr>
                                        <td class="center"><input class="aids" type="checkbox" name="user_id[]" value="{$val['user_id']}"></td>
                                        <td>{$val['nickname']}</td>
                                        <td>{$val['open_id']}</td>
                                        <td>{$val['history']}</td>
                                        <td>{$val['addtime']}</td>
                                        <td>{$val['platform_name']}</td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </form>
                        {$page}
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
        $(".check-all").click(function () {
            $(".aids").prop("checked", this.checked);
            getuserids();
        });

        $(".aids").click(function () {
            getuserids();
        });

        function getuserids(){
            var option = $(".ids");
            var user_ids = "";
            $(".aids").each(function(){
                if(this.checked){
                    user_ids += this.value+",";
                }
            });
            if(user_ids.length > 0)
                user_ids = user_ids.substring(0, user_ids.length - 1);
            $("#user_ids").val(user_ids);
            $("#user_ids1").val(user_ids);
            $("#user_ids2").val(user_ids);
        }
        move = '';
        $(".move").blur(function () {
            move = parseInt($(this).val());
        });
        if(move == ''){
            move = 4000;
        }
    })
    /*$('.muban').submit(function(){
        var arr = $(this).serialize();
        var num = 0;
        $(".aids").each(function (obj) {
            if($(this).get(0).checked == true){
                num++;
            }
        })
        if (num == 0){
            var nums=document.getElementById('inputtext').value;
        }else{
            nums = num;
        }
        var urls="http://onroof.cn/Qwadmin/User/send_info2.html";
        var sums=nums/move;
        var contentnum=0;
        var first = 0;
        for(var i=0;i<sums;i++){
            if(parseInt(contentnum)+move<nums){
                contentnum=contentnum+move;
                window.open(urls+"?first="+first+"&move="+move+"&"+arr);
                first=eval(contentnum+1);
            }else{
                window.open(urls+"?first="+first+"&move="+move+"&"+arr);
            }
        }
    })*/

</script>
</body>
</html>
